package hr.fer.ztel.rassus.brbljaonica.business;

import org.jivesoftware.smackx.muc.HostedRoom;
import org.jivesoftware.smackx.muc.RoomInfo;
import org.jivesoftware.smackx.packet.DiscoverItems.Item;

/**
 * Klasa koja predstavlja dostupnu sobu na posluzitelju
 * Prosiruje klasu <code>HostedRoom</code> u svrhu prikladnijeg<br>
 * ispisa na ekran
 */
public class HostedRoomPresentation extends HostedRoom {

	private RoomInfo roomInfo;
	
	public HostedRoomPresentation(Item item) {
		super(item);
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return super.getName() + " - " + roomInfo.getDescription() + " (" + roomInfo.getOccupantsCount() + ")";
	}
	
	public RoomInfo getRoomInfo() {
		return roomInfo;
	}

	public void setRoomInfo(RoomInfo ri) {
		roomInfo = ri;
	}
}
